import Vue from 'vue'
import Vuex from 'vuex'
import userModule from './modules/user'
import createState from 'vuex-persistedstate'
Vue.use(Vuex)

const store = new Vuex.Store({
  plugins: [createState()],
  modules: {
    user: userModule
  }
})

export default store
